<h1>Listing contacts</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Summary</th>
    <th>Birthday</th>
    <th>Url</th>
    <th>Address</th>
    <th>Phone</th>
  </tr>

<% @contacts.each do |contact| %>
  <tr>
    <td><%=h contact.title %></td>
    <td><%=h contact.summary %></td>
    <td><%=h contact.birthday %></td>
    <td><%=h contact.url %></td>
    <td><%=h contact.address %></td>
    <td><%=h contact.phone %></td>
    <td><%= link_to 'Show', contact %></td>
    <td><%= link_to 'Edit', edit_contact_path(contact) %></td>
    <td><%= link_to 'Destroy', contact, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New contact', new_contact_path %>